#!/bin/bash

ICON='📝'

# Get total memory and used memory
total_memory=$(free -m | awk '/^Mem:/ {print $2}')
used_memory=$(free -m | awk '/^Mem:/ {print $3}')
used_memory_percentage=$((100 * ${used_memory} / ${total_memory}))

printf "${ICON} %s%%│" "${used_memory_percentage}"

# EOF
